﻿@model IEnumerable<DomainModel.Entities.Company>
@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            الاسم في اللغة العربية
        </th>
        <th>
            Phone
        </th>     
        <th>
            Email
        </th>
        <th>
            Website
        </th>
        <th>
            Type
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
          
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name_Ar)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Phone)
            </td>         
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Website)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CompanyType.Name)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.CompanyId }) |
                @Html.ActionLink("Details", "Details", new { id = item.CompanyId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.CompanyId })
            </td>
        </tr>
    }
</table>
